package com.fuxian.util;

import java.sql.Timestamp;

import com.fuxian.model.Event;

public class EventUtil {

	public static Event setEvent(String event_type, int userId, String desc) {
		Event event = new Event();
		event.setEvent_type(event_type);
		event.setUser_id(userId);
		event.setOpt_time(new Timestamp(System.currentTimeMillis()));
		event.setEvent_name(desc);
		event.setCreate_time(new Timestamp(System.currentTimeMillis()));
		event.setCreate_user("SYS");
		return event;

	}
}
